package 实现类.作业;

public class zuoye5 {
    public static void main(String[] args) {
        StringBuffer sb=new StringBuffer("[");
        int[] arr={1,2,3};
        for (int i=0;i<arr.length;i++){
            sb.append(arr[i]);

            if (i==2){
                break;
            }
            sb.append(",");

        }
        System.out.print(sb);
        System.out.print("]");

    }
}
